#include "e2d/imgui/render/Editor.h"
#include "e2d/core/render/components.h"
#include "sysx/System.h"

using Editor = e2d::BasicEditor;

template<>
bool Editor::Edit<e2d::ImageQuad>(const std::string& l, e2d::ImageQuad& e)
{
	EditInst<e2d::Texture2DMap>("m_Texture", e.m_Texture);

	if (e.m_Texture.m_Value)
	{
		ImGui::Image(e.m_Texture.m_Value->GetTextureId(), { 200,200 });
	}
	return false;
}